﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace badmati.Log.Repository
{
    public interface IGetDataRepository<T>
    {
        /// <summary>
        /// 获取所有数据
        /// </summary>
        /// <returns></returns>
        List<T> GetAllData();
        /// <summary>
        /// 通过分页获取数据
        /// </summary>
        /// <param name="pageNuber"></param>
        /// <param name="pageSize"></param>
        /// <param name="sortField"></param>
        /// <param name="sortOrder"></param>
        /// <returns></returns>
        List<T> GetPaginaionData(int pageNuber, int pageSize, string sortField, bool sortAsc);
        /// <summary>
        /// 获取数据段
        /// </summary>
        /// <param name="start"></param>
        /// <param name="count"></param>
        /// <param name="sortField"></param>
        /// <param name="sortOrder"></param>
        /// <returns></returns>
        List<T> GetDataSpan(int start, int count, string sortField, bool sortOrder);
    }
}
